package com.lottery.material.entity.conf;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Description：系统参数配置表
 * Created by 朱正磊 on 2019-04-09 10:24
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_system_parameter_config")
public class SystemParameterConfig extends BaseEntity {

    private static final long serialVersionUID = -2549097233843492L;

    @Column(columnDefinition = "varchar(255) comment '参数名称'")
    private String paramName;

    @Column(columnDefinition = "varchar(255) comment '参数值'")
    private String paramValue;

    @Column(columnDefinition = "varchar(255) comment '参数描述'")
    private String paramDesc;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(columnDefinition = "datetime comment '更新时间'")
    private Date updateTime;

    @Column(columnDefinition = "int(1) default '1' comment '是否删除（1：否；2：是）'")
    private Integer isDelete;

}
